/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8faff;
    color: #2a4365;
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
    background-color: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(42, 67, 101, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e2e8f0;
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #3182ce;
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: #2c5282;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 8px 12px;
    border-radius: 6px;
}

.nav-links a:hover {
    color: #ffffff;
    background-color: #4299e1;
}

.nav-links a.active {
    color: #ffffff;
    background-color: #3182ce;
}

/* 主要内容区域 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0;
}

/* 内容区块通用样式 */
.content-block {
    background-color: #ffffff;
    border: 1px solid #bee3f8;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(66, 153, 225, 0.1);
    transition: all 0.3s ease;
}

.content-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(66, 153, 225, 0.15);
}

.section-title {
    color: #3182ce;
    border-bottom: 2px solid #bee3f8;
    padding-bottom: 10px;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 22px;
}

/* 个人信息区块 */
.profile-block {
    text-align: center;
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #bee3f8;
    margin-bottom: 20px;
}

.profile-info h1 {
    color: #2b6cb0;
    margin-bottom: 10px;
    font-size: 28px;
}

.profile-subtitle {
    color: #4a5568;
    font-size: 18px;
    margin-bottom: 15px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.contact-info p {
    display: flex;
    align-items: center;
    margin: 5px 0;
    color: #4a5568;
}

.icon {
    margin-right: 8px;
    font-size: 18px;
}

/* 教育背景 */
.education {
    padding: 0 10px;
}

.education h3 {
    color: #3182ce;
    margin-bottom: 5px;
}

.education-period {
    color: #718096;
    font-style: italic;
    margin-bottom: 10px;
}

.education-major {
    font-weight: 500;
    margin-bottom: 15px;
}

.education-details h4 {
    color: #4a5568;
    margin: 15px 0 10px 0;
}

.course-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.course-list li {
    list-style-type: none;
}

.course-list li::before {
    content: "•";
    color: #3182ce;
    position: absolute;
    left: 0;
}

.gpa {
    font-weight: 500;
}

.gpa span {
    color: #3182ce;
    font-weight: bold;
}

/* 项目经验 */
.project-card {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f7fafc;
    border-radius: 8px;
    border-left: 4px solid #3182ce;
    transition: all 0.3s ease;
}

.project-card:hover {
    background-color: #ebf8ff;
    transform: translateX(5px);
}

.project-card h3 {
    color: #2b6cb0;
    margin-top: 0;
    margin-bottom: 5px;
}

.project-period {
    color: #718096;
    font-size: 14px;
    margin-bottom: 10px;
}

.project-details {
    padding-left: 20px;
}

.project-details li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.project-details li::before {
    content: "▹";
    color: #3182ce;
    position: absolute;
    left: 0;
}

/* 技能 */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.skill-category {
    padding: 15px;
    background-color: #f7fafc;
    border-radius: 8px;
}

.skill-category h3 {
    color: #3182ce;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

.skill-list {
    padding-left: 0;
}

.skill-list li {
    list-style: none;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.skill-level {
    color: #ffffff;
    background-color: #4299e1;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

/* 荣誉与证书 */
.awards-list {
    padding-left: 0;
}

.awards-list li {
    list-style: none;
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    margin-bottom: 8px;
    background-color: #f7fafc;
    border-radius: 6px;
}

.award-name {
    font-weight: 500;
}

.award-date {
    color: #718096;
    font-size: 14px;
}

/* 社团与活动 */
.activity-card {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f7fafc;
    border-radius: 8px;
    border-left: 4px solid #4299e1;
}

.activity-card h3 {
    color: #2b6cb0;
    margin-top: 0;
    margin-bottom: 5px;
}

.activity-period {
    color: #718096;
    font-size: 14px;
    margin-bottom: 10px;
}

.activity-details {
    padding-left: 20px;
}

.activity-details li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.activity-details li::before {
    content: "▹";
    color: #4299e1;
    position: absolute;
    left: 0;
}

/* 页脚样式 */
footer {
    background-color: #ffffff;
    color: #4a5568;
    text-align: center;
    padding: 25px 0;
    margin-top: 50px;
    border-top: 1px solid #e2e8f0;
    font-size: 14px;
}

.social-links {
    margin-top: 15px;
}

.social-icon {
    color: #3182ce;
    text-decoration: none;
    margin: 0 10px;
    transition: all 0.3s;
}

.social-icon:hover {
    color: #2b6cb0;
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
    }
    
    .nav-links {
        margin-top: 15px;
    }
    
    .nav-links li {
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .profile {
        flex-direction: column;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .awards-list li {
        flex-direction: column;
    }
    
    .award-date {
        margin-top: 5px;
    }
}